//购物车
import request from '@/utils/request'
//添加购物车
export function cartAdd(data){
        return request({
            method:'post',
            url:'/frontend/cart/add/',
            data:data
        })
}
//获取购物车列表
export function cartList(data){
    return request({
        method:'post',
        url:'/frontend/cart/list/',
        data:data
    })
}
//编辑购物车
export function cartEdit(data){
    return request({
        method:'post',
        url:'/frontend/cart/update/',
        data:data
    })
}
//删除购物车
export function cartDelete(data){
    return request({
        method:'post',
        url:'/frontend/cart/delete/',
        data:data
    })
}